﻿using SmartSql.DyRepository;
using SX.Entity;
using System.Collections;
using System.Collections.Generic;

namespace SX.Repository
{
	/// <summary>
    /// 行政区划表
    /// </summary>
	public partial interface IAreaRepository:IRepository
	{
		#region Interface
		/// <summary>
		/// 添加
		/// </summary>
		/// <param name="entity"></param>
		long Add(Area entity);
		/// <summary>
		/// 删除
		/// </summary>
		/// <param name="id"></param> 
		int Remove(Area entity);
		/// <summary>
		/// 修改
		/// </summary>
		/// <param name="model"></param>
		int Update(Area entity);
		int DyUpdate(object reqParams);
		IEnumerable<Area> Query(object reqParams);
		IEnumerable<T> Query<T>(object reqParams);
		IEnumerable<Area> QueryByPage(object reqParams);
		IEnumerable<T> QueryByPage<T>(object reqParams);
		[Statement(Execute = ExecuteBehavior.ExecuteScalar)]
		int GetRecord(object reqParams);

		[Statement(Execute = ExecuteBehavior.ExecuteScalar)]
		int Exists(object reqParams); 
		#endregion
	}
}